// JavaScript Document
function Delete(data)
{
	var pathName = document.location.pathname;
	var index = pathName.substr(1).indexOf("/");
	var result = pathName.substr(0,index+1);	
	if(confirm("确定要删除吗？")) {
		$.ajax({
			url:result+"/pro/delete",
			dataType:"json",
			data:"epId="+data,
			Type:"get",
			success:function(data){
				if(data.success){
					alert(data.message);
				}else{
					alert(data.message);
				}
			},
			error:function(){
				alert("请求响应出错");
			}
		})
	}
}